package com.zmn.oms.business.interfaces.third;

import com.zmn.oms.model.entity.third.ZhimiExtendOrder;

import java.util.Date;
import java.util.List;

/**
 * @author: lhl
 * @create: 2020-04-28 18:51
 **/
public interface ZhimiExtendOrderService {

    ZhimiExtendOrder findByOrderId(Long orderId, boolean containsExtendData);

    /**
     * 查询指定时间录入的订单信息
     * @param startTime
     * @param endTime
     * @return
     */
    List<ZhimiExtendOrder> listByCreateTime(Date startTime, Date endTime);

    /**
     * 获取申请了配件需要查询配件邮寄信息的订单
     *
     * @return
     */
    List<ZhimiExtendOrder> listNoExpressOrders(Date startTime);

    void save(ZhimiExtendOrder zhimiExtendOrder);

    void updateByKey(ZhimiExtendOrder zhimiExtendOrder);

    void updateServiceTypeByKey(ZhimiExtendOrder zhimiExtendOrder);

}
